package com.teamclub.domain.pay.order;

import io.ebean.Finder;
import io.ebean.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.util.Date;

@Entity
@Table(name = "pay_info_conf")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PayInfoConf extends Model {
    @Id
    private Integer id;
    private String organNo;
    private String thirdType; // 第三方类型  weixin , alipay ,qq
    private String thirdAppId; //第三方 appid
    private String thirdAppSecret; //第三方 appsecret
    private String thirdMchId; // 第三方商户号
    private String thirdAppKey; // 第三方 appkey
    private String thirdNotifyUrl; // 交易通知地址
    @Version
    private Date modifyTime; //修改时间

    public static Finder<Integer, PayInfoConf> finder = new Finder<>(PayInfoConf.class);

}
